#ifndef SF_CWIN32WINDOW_H_
#define SF_CWIN32WINDOW_H_
#pragma once
#include "SFConfig.h"
#include <windows.h>
#include "iwindow.h"
#include "SFRoot.h"
namespace SF
{	
	class CWin32Window:public IWindow
	{
	public:
		friend class SFRoot;
	public:
		CWin32Window();
		virtual ~CWin32Window();
	public:
		virtual void SetClientSize(const size2di& rkSize);
		virtual size2di GetCliendSize();

		virtual void SetWindowPos(const pos2di& rkPos);
		virtual pos2di GetWindowPos();

		virtual bool IsRunning();
	private:
		virtual bool Initialize(HWND hWnd,const recti& rkRect);
		virtual bool InitAuto();
	private:
		static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
	private:
		HWND 	m_hWnd;
	};
}
#endif